import Register from "@/views/Register";
import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import echarts from './views/charts/echarts.vue'
//org
import department from "./views/view/org/department";

import TenantType from "@/views/view/Sysmanage/TenantType";
import Tenant from "@/views/view/Sysmanage/Tenant";

import TenantRegister from "@/views/view/Sysmanage/TenantRegister";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/tenantRegister',
        component:TenantRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-bar-chart',
        leaf: true,
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '组织机构管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/department', component: department, name: '部门管理'},
            { path: '/employee', component: department, name: '员工管理'},
            { path: '/meal', component: department, name: '套餐管理'},
            { path: '/tenant', component: Tenant, name: '租户管理'},
            { path: '/tenantType', component: TenantType, name: '租户类型管理'},
            { path: '/config', component: department, name: '系统配置管理'}
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;